Optimal. Leaf size=144 \[ -\frac {1}{2 a c^2 x^2}+\frac {b c+2 a d}{a^2 c^3 x}-\frac {d^3}{c^3 (b c-a d) (c+d x)}+\frac {\left (b^2 c^2+2 a b c d+3 a^2 d^2\right ) \log (x)}{a^3 c^4}-\frac {b^4 \log (a+b x)}{a^3 (b c-a d)^2}+\frac {d^3 (4 b c-3 a d) \log (c+d x)}{c^4 (b c-a d)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 144, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {90}
\begin {gather*} -\frac {b^4 \log (a+b x)}{a^3 (b c-a d)^2}+\frac {2 a d+b c}{a^2 c^3 x}+\frac {\log (x) \left (3 a^2 d^2+2 a b c d+b^2 c^2\right )}{a^3 c^4}+\frac {d^3 (4 b c-3 a d) \log (c+d x)}{c^4 (b c-a d)^2}-\frac {d^3}{c^3 (c+d x) (b c-a d)}-\frac {1}{2 a c^2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 90
Rubi steps
\begin {align*} \int \frac {1}{x^3 (a+b x) (c+d x)^2} \, dx &=\int \left (\frac {1}{a c^2 x^3}+\frac {-b c-2 a d}{a^2 c^3 x^2}+\frac {b^2 c^2+2 a b c d+3 a^2 d^2}{a^3 c^4 x}-\frac {b^5}{a^3 (-b c+a d)^2 (a+b x)}+\frac {d^4}{c^3 (b c-a d) (c+d x)^2}+\frac {d^4 (4 b c-3 a d)}{c^4 (b c-a d)^2 (c+d x)}\right ) \, dx\\ &=-\frac {1}{2 a c^2 x^2}+\frac {b c+2 a d}{a^2 c^3 x}-\frac {d^3}{c^3 (b c-a d) (c+d x)}+\frac {\left (b^2 c^2+2 a b c d+3 a^2 d^2\right ) \log (x)}{a^3 c^4}-\frac {b^4 \log (a+b x)}{a^3 (b c-a d)^2}+\frac {d^3 (4 b c-3 a d) \log (c+d x)}{c^4 (b c-a d)^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.32, size = 143, normalized size = 0.99 \begin {gather*} \frac {\left (b^2 c^2+2 a b c d+3 a^2 d^2\right ) \log (x)}{a^3 c^4}-\frac {b^4 \log (a+b x)}{a^3 (b c-a d)^2}+\frac {c \left (\frac {2 b c}{a^2 x}-\frac {c-4 d x}{a x^2}+\frac {2 d^3}{(-b c+a d) (c+d x)}\right )+\frac {2 d^3 (4 b c-3 a d) \log (c+d x)}{(b c-a d)^2}}{2 c^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 145, normalized size = 1.01
method | result | size |
default | \(-\frac {b^{4} \ln \left (b x +a \right )}{a^{3} \left (a d -b c \right )^{2}}+\frac {d^{3}}{c^{3} \left (a d -b c \right ) \left (d x +c \right )}-\frac {d^{3} \left (3 a d -4 b c \right ) \ln \left (d x +c \right )}{c^{4} \left (a d -b c \right )^{2}}-\frac {1}{2 a \,c^{2} x^{2}}-\frac {-2 a d -b c}{a^{2} c^{3} x}+\frac {\left (3 a^{2} d^{2}+2 a b c d +b^{2} c^{2}\right ) \ln \left (x \right )}{a^{3} c^{4}}\) | \(145\) |
norman | \(\frac {\frac {\left (-3 a^{2} d^{3}+a b c \,d^{2}+b^{2} c^{2} d \right ) d \,x^{3}}{c^{4} a^{2} \left (a d -b c \right )}-\frac {1}{2 a c}+\frac {\left (3 a d +2 b c \right ) x}{2 a^{2} c^{2}}}{x^{2} \left (d x +c \right )}+\frac {\left (3 a^{2} d^{2}+2 a b c d +b^{2} c^{2}\right ) \ln \left (x \right )}{a^{3} c^{4}}-\frac {b^{4} \ln \left (b x +a \right )}{a^{3} \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}-\frac {d^{3} \left (3 a d -4 b c \right ) \ln \left (d x +c \right )}{c^{4} \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}\) | \(199\) |
risch | \(\frac {\frac {d \left (3 a^{2} d^{2}-a b c d -b^{2} c^{2}\right ) x^{2}}{a^{2} c^{3} \left (a d -b c \right )}+\frac {\left (3 a d +2 b c \right ) x}{2 a^{2} c^{2}}-\frac {1}{2 a c}}{x^{2} \left (d x +c \right )}-\frac {3 d^{4} \ln \left (-d x -c \right ) a}{c^{4} \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}+\frac {4 d^{3} \ln \left (-d x -c \right ) b}{c^{3} \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}+\frac {3 \ln \left (-x \right ) d^{2}}{a \,c^{4}}+\frac {2 \ln \left (-x \right ) b d}{a^{2} c^{3}}+\frac {\ln \left (-x \right ) b^{2}}{a^{3} c^{2}}-\frac {b^{4} \ln \left (b x +a \right )}{a^{3} \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}\) | \(246\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.32, size = 245, normalized size = 1.70 \begin {gather*} -\frac {b^{4} \log \left (b x + a\right )}{a^{3} b^{2} c^{2} - 2 \, a^{4} b c d + a^{5} d^{2}} + \frac {{\left (4 \, b c d^{3} - 3 \, a d^{4}\right )} \log \left (d x + c\right )}{b^{2} c^{6} - 2 \, a b c^{5} d + a^{2} c^{4} d^{2}} - \frac {a b c^{3} - a^{2} c^{2} d - 2 \, {\left (b^{2} c^{2} d + a b c d^{2} - 3 \, a^{2} d^{3}\right )} x^{2} - {\left (2 \, b^{2} c^{3} + a b c^{2} d - 3 \, a^{2} c d^{2}\right )} x}{2 \, {\left ({\left (a^{2} b c^{4} d - a^{3} c^{3} d^{2}\right )} x^{3} + {\left (a^{2} b c^{5} - a^{3} c^{4} d\right )} x^{2}\right )}} + \frac {{\left (b^{2} c^{2} + 2 \, a b c d + 3 \, a^{2} d^{2}\right )} \log \left (x\right )}{a^{3} c^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 350 vs.
\(2 (142) = 284\).
time = 7.01, size = 350, normalized size = 2.43 \begin {gather*} -\frac {a^{2} b^{2} c^{5} - 2 \, a^{3} b c^{4} d + a^{4} c^{3} d^{2} - 2 \, {\left (a b^{3} c^{4} d - 4 \, a^{3} b c^{2} d^{3} + 3 \, a^{4} c d^{4}\right )} x^{2} - {\left (2 \, a b^{3} c^{5} - a^{2} b^{2} c^{4} d - 4 \, a^{3} b c^{3} d^{2} + 3 \, a^{4} c^{2} d^{3}\right )} x + 2 \, {\left (b^{4} c^{4} d x^{3} + b^{4} c^{5} x^{2}\right )} \log \left (b x + a\right ) - 2 \, {\left ({\left (4 \, a^{3} b c d^{4} - 3 \, a^{4} d^{5}\right )} x^{3} + {\left (4 \, a^{3} b c^{2} d^{3} - 3 \, a^{4} c d^{4}\right )} x^{2}\right )} \log \left (d x + c\right ) - 2 \, {\left ({\left (b^{4} c^{4} d - 4 \, a^{3} b c d^{4} + 3 \, a^{4} d^{5}\right )} x^{3} + {\left (b^{4} c^{5} - 4 \, a^{3} b c^{2} d^{3} + 3 \, a^{4} c d^{4}\right )} x^{2}\right )} \log \left (x\right )}{2 \, {\left ({\left (a^{3} b^{2} c^{6} d - 2 \, a^{4} b c^{5} d^{2} + a^{5} c^{4} d^{3}\right )} x^{3} + {\left (a^{3} b^{2} c^{7} - 2 \, a^{4} b c^{6} d + a^{5} c^{5} d^{2}\right )} x^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.23, size = 211, normalized size = 1.47 \begin {gather*} -\frac {d^{7}}{{\left (b c^{4} d^{4} - a c^{3} d^{5}\right )} {\left (d x + c\right )}} - \frac {b^{4} d \log \left ({\left | b - \frac {b c}{d x + c} + \frac {a d}{d x + c} \right |}\right )}{a^{3} b^{2} c^{2} d - 2 \, a^{4} b c d^{2} + a^{5} d^{3}} + \frac {{\left (b^{2} c^{2} d + 2 \, a b c d^{2} + 3 \, a^{2} d^{3}\right )} \log \left ({\left | -\frac {c}{d x + c} + 1 \right |}\right )}{a^{3} c^{4} d} + \frac {2 \, a b c d + 5 \, a^{2} d^{2} - \frac {2 \, {\left (a b c^{2} d^{2} + 3 \, a^{2} c d^{3}\right )}}{{\left (d x + c\right )} d}}{2 \, a^{3} c^{4} {\left (\frac {c}{d x + c} - 1\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.75, size = 207, normalized size = 1.44 \begin {gather*} \frac {\ln \left (x\right )\,\left (3\,a^2\,d^2+2\,a\,b\,c\,d+b^2\,c^2\right )}{a^3\,c^4}-\frac {b^4\,\ln \left (a+b\,x\right )}{a^5\,d^2-2\,a^4\,b\,c\,d+a^3\,b^2\,c^2}-\frac {\ln \left (c+d\,x\right )\,\left (3\,a\,d^4-4\,b\,c\,d^3\right )}{a^2\,c^4\,d^2-2\,a\,b\,c^5\,d+b^2\,c^6}-\frac {\frac {1}{2\,a\,c}-\frac {x\,\left (3\,a\,d+2\,b\,c\right )}{2\,a^2\,c^2}+\frac {x^2\,\left (-3\,a^2\,d^3+a\,b\,c\,d^2+b^2\,c^2\,d\right )}{a^2\,c^3\,\left (a\,d-b\,c\right )}}{d\,x^3+c\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________